const db = require('./db')
const BookModule = require('./modules/BookModule')

db(() => {
  BookModule.find({ price: { $gte: 50 } }).select({ _id: 0, name: 1, price: 1 }).then(data => {
    console.log('查询成功', data)
  }).catch(error => {
    console.log('查询失败', error)
  })
}, () => {
  console.log('错误了')
})